﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IBLL;
using IDAL;

namespace BLL
{
    public partial class BLLSession 
    {
	   public int SaveChanges(string type)
        {
            IDBSessionFactory sessFactory = DI.Spring.GetObject<IDBSessionFactory>("DBSessFactory");
            var iDbSession = sessFactory.GetDBSession();
            return iDbSession.SaveChanges(type);
        }       


        		
		IObject_BLL iObject_BLL;
		public IObject_BLL IObject_BLL
		{
			get
			{
				if(iObject_BLL==null)
					iObject_BLL= new Object_BLL();
				return iObject_BLL;
			}
			set
			{
				iObject_BLL= value;
			}
		}
	
    }
	public partial class BLLSession : IBLLSession
    {
        		#region 01 业务接口 ICurrency_DAL
		ICurrency_BLL iCurrency_BLL;
		public ICurrency_BLL ICurrency_BLL
		{
			get
			{
				if(iCurrency_BLL==null)
					iCurrency_BLL= new Currency_BLL();
				return iCurrency_BLL;
			}
			set
			{
				iCurrency_BLL= value;
			}
		}
		#endregion

        		#region 02 业务接口 ICurrencyConvertLoss_DAL
		ICurrencyConvertLoss_BLL iCurrencyConvertLoss_BLL;
		public ICurrencyConvertLoss_BLL ICurrencyConvertLoss_BLL
		{
			get
			{
				if(iCurrencyConvertLoss_BLL==null)
					iCurrencyConvertLoss_BLL= new CurrencyConvertLoss_BLL();
				return iCurrencyConvertLoss_BLL;
			}
			set
			{
				iCurrencyConvertLoss_BLL= value;
			}
		}
		#endregion

        		#region 03 业务接口 IRateOfExchange_DAL
		IRateOfExchange_BLL iRateOfExchange_BLL;
		public IRateOfExchange_BLL IRateOfExchange_BLL
		{
			get
			{
				if(iRateOfExchange_BLL==null)
					iRateOfExchange_BLL= new RateOfExchange_BLL();
				return iRateOfExchange_BLL;
			}
			set
			{
				iRateOfExchange_BLL= value;
			}
		}
		#endregion

        		#region 04 业务接口 IRateOfExchangeAnalysi_DAL
		IRateOfExchangeAnalysi_BLL iRateOfExchangeAnalysi_BLL;
		public IRateOfExchangeAnalysi_BLL IRateOfExchangeAnalysi_BLL
		{
			get
			{
				if(iRateOfExchangeAnalysi_BLL==null)
					iRateOfExchangeAnalysi_BLL= new RateOfExchangeAnalysi_BLL();
				return iRateOfExchangeAnalysi_BLL;
			}
			set
			{
				iRateOfExchangeAnalysi_BLL= value;
			}
		}
		#endregion

        		#region 05 业务接口 IRateOfExchangeHistory_DAL
		IRateOfExchangeHistory_BLL iRateOfExchangeHistory_BLL;
		public IRateOfExchangeHistory_BLL IRateOfExchangeHistory_BLL
		{
			get
			{
				if(iRateOfExchangeHistory_BLL==null)
					iRateOfExchangeHistory_BLL= new RateOfExchangeHistory_BLL();
				return iRateOfExchangeHistory_BLL;
			}
			set
			{
				iRateOfExchangeHistory_BLL= value;
			}
		}
		#endregion

        		#region 06 业务接口 ISalesPlatformSiteInfoAccess_DAL
		ISalesPlatformSiteInfoAccess_BLL iSalesPlatformSiteInfoAccess_BLL;
		public ISalesPlatformSiteInfoAccess_BLL ISalesPlatformSiteInfoAccess_BLL
		{
			get
			{
				if(iSalesPlatformSiteInfoAccess_BLL==null)
					iSalesPlatformSiteInfoAccess_BLL= new SalesPlatformSiteInfoAccess_BLL();
				return iSalesPlatformSiteInfoAccess_BLL;
			}
			set
			{
				iSalesPlatformSiteInfoAccess_BLL= value;
			}
		}
		#endregion

            }
}